<template>
  <el-carousel arrow="never" class="swp" :autoplay="false">
    <el-carousel-item v-for="item in 3" :key="item">
      <div class="swp-1">
        <div class="swps-1" v-for="(item, index) in list" :key="index">
          <div class="tou-1"></div>
          <div class="text">{{ item.name }}</div>
          <div class="text-1">
            <img :src="item.image" />
            <span class="wen-1">{{ item.text }}</span>
          </div>
        </div>
      </div>
      <div class="swp-2">
        <div class="swpa-1" v-for="i in 9" :key="i">
          <div class="swp-21">
            <span class="xing">姓名：</span>
            <span class="xi-1">吴文杰</span>
          </div>
          <div class="swp-21">
            <span class="xing">职位：</span>
            <span class="xi-1">党委主任</span>
          </div>
        </div>
      </div>
    </el-carousel-item>
  </el-carousel>
</template>

<script lang="ts" setup>
import image from '@/assets/Home/y-7.png'
const list = [
  {
    name: '吴文杰',
    image: image,
    text: '党委书记'
  },
  {
    name: '吴鑫达',
    image: image,
    text: '党委副书记'
  },
  {
    name: '张晓荣',
    image: image,
    text: '党委副书记'
  },
  {
    name: '鲍圣辉',
    image: image,
    text: '党委副书记'
  }
]
//右边的数据
</script>

<style lang="scss" scoped>
.swp {
  width: 100%;
  height: 300px;
  box-sizing: border-box;
  .el-carousel__container {
    height: 300px;
  }
  .el-carousel__item {
    /* background-color: #d3dce6; */
    box-sizing: border-box;
    display: flex;
    padding: 10px;
    height: 300px;
    .swp-1 {
      /* flex: 1; */
      width: 35%;
      /* background-color: bisque; */
      margin-right: 10px;
      display: flex;
      box-sizing: border-box;
      flex-wrap: wrap;
      .swps-1 {
        width: 50%;
        /* background-color: blueviolet; */
        display: flex;
        flex-direction: column;
        /* justify-content: center; */
        align-items: center;
        .tou-1 {
          width: 70px;
          height: 68px;
          background-image: url('../assets/Home/kw-1.png');
          background-size: 100% 100%;
          background-repeat: no-repeat;
          /* background-color: aliceblue; */
        }
        .text {
          font-size: 14px;
          font-family:
            PingFangSC-Medium,
            PingFang SC;
          font-weight: 500;
          color: #ffffff;
          line-height: 14px;
          margin: 5px 0;
        }
        .text-1 {
          font-size: 14px;
          font-family:
            PingFangSC-Medium,
            PingFang SC;
          font-weight: 500;
          color: #ffffff;
          line-height: 12px;
          background: linear-gradient(180deg, #fef100 0%, #e24818 100%);
          -webkit-background-clip: text;
          -webkit-text-fill-color: transparent;
          display: flex;
          align-items: center;
        }
      }
    }
    .swp-2 {
      width: 65%;
      height: 225px;
      background: linear-gradient(180deg, #b0620e 0%, #b63812 100%),
        linear-gradient(
          180deg,
          rgba(126, 3, 3, 0.4) 10%,
          rgba(73, 10, 2, 0.5) 100%
        );
      border-radius: 4px;
      border: 2px solid;
      border-image: radial-gradient(
          circle,
          rgba(255, 42, 33, 1),
          rgba(255, 138, 128, 0.7),
          rgba(255, 166, 166, 0)
        )
        2 2;
      display: flex;
      /* padding: 10px 0; */
      flex-wrap: wrap;
      .swpa-1 {
        width: 90px;
        height: 42px;
        margin: 10px;
        /* background-color: #15150c; */
        .swp-21 {
          width: 100px;
          height: 24px;
          /* white-space: nowrap; */
          .xing {
            font-size: 14px;
            font-family:
              PingFangSC-Regular,
              PingFang SC;
            font-weight: 400;
            color: #ffffff;
          }
          .xi-1 {
            font-size: 14px;
            font-family:
              PingFangSC-Medium,
              PingFang SC;
            font-weight: 500;
            color: #ffffff;
          }
        }
      }
    }
  }
  ::v-deep .el-carousel__indicators [class*='indicator']:hover,
  ::v-deep .el-carousel__indicators [class*='indicator'].is-active {
    width: 26px;
    height: 5px;
    border-radius: 3px;
    background: #ffcc66;
    transition: all 0.3s ease;
  }
  ::v-deep() .el-carousel__indicators [class*='indicator'] {
    background: #ffcc66;
    width: 5px;
    height: 5px;
    border-radius: 5px;
    transition: all 0.3s ease;
    background: #ffcc66;
    opacity: 0.4;
    margin: 0 5px;
  }
  ::v-deep() .el-carousel__indicator--horizontal {
    padding: 0;
  }
  ::v-deep() .el-carousel__indicators--horizontal {
    padding: 50px 0;
    box-sizing: border-box;
    left: 65%;
  }
  ::v-deep() .el-carousel__button {
    width: 0px;
    height: 0px;
  }
}
</style>
